﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace EasyMvcBlog.Infrastructure.Repository
{
    public interface IRepository<T> where T : class
    {
        T Add(T entity);

        void Delete(T entity);

        void Update(T entity);

        T GetById(int id);

        List<T> GetList(Expression<Func<T, bool>> expression);
    }
}
